name = "Admin Scoreboard+"
version = "1.22"
description = "Version: " .. version .. "\n\n" ..
[[Client-side mod that adds command buttons on the scoreboard (TAB key by default) for server admins.
You must be an admin on the server and have the ability to execute remote console commands for this mod to work.

v1.22
- Added visibility toggle for only yourself
- Fixed scrolling back/goto button overlap]]
author = "T Shaw Killer"
forumthread = ""
api_version = 10
priority = -1001
dont_starve_compatible = false
reign_of_giants_compatible = false
dst_compatible = true
all_clients_require_mod = false
client_only_mod = true
server_filter_tags = {}
icon_atlas = "admin.xml"
icon = "admin.tex"

local no_yes_options = {
	{ description =  "No", data = false },
	{ description = "Yes", data = true  },
}

local function confirm_config(name, label)
	return {
		name = name,
		label = label .. " Confirm Box",
		hover = "If a confirm box will be shown before executing the '" .. label .."' command",
		options = no_yes_options,
		default = true,
	}
end

local function announce_config(name, label)
	return {
		name = name,
		label = label .. " Announce",
		hover = "If an announcement will be shown after executing the '" .. label .."' command",
		options = no_yes_options,
		default = true,
	}
end

configuration_options =
{
	{
		name = "SCOREBOARD_TOGGLE",
		label = "Scoreboard Key Is Toggle",
		hover = "The scoreboard key will function like a toggle instead of a hold",
		options = no_yes_options,
		default = false,
	},
	{
		name = "GATHER_ENABLE",
		label = "Enable Gather",
		hover = "Adds a Gather command as a right click action for the Goto button",
		options = no_yes_options,
		default = false,
	},
	{
		name = "SUPERGOD_ENABLE",
		label = "Enable Super God Mode",
		hover = "Adds a Super God Mode command as a right click action for the God Mode button",
		options = no_yes_options,
		default = false,
	},
	{
		name = "PICKUP_COOLDOWN",
		label = "Pickup Cooldown",
		hover = "After sending a drop command, how long (in seconds) is the target player unable to pickup any items",
		options = {
			{ description = "0", data = 0 },
			{ description = "3", data = 3 },
			{ description = "5", data = 5 },
			{ description = "8", data = 8 },
			{ description = "10", data = 10 },
			{ description = "15", data = 15 },
		},
		default = 8,
	},
	confirm_config("DROP_CONFIRM", "Drop"),
	confirm_config("KILL_CONFIRM", "Kill/Revive"),
	confirm_config("GOD_CONFIRM", "God Mode"),
	confirm_config("CREATIVE_CONFIRM", "Creative Mode"),
	confirm_config("REPAIR_CONFIRM", "Repair"),
	confirm_config("DESPAWN_CONFIRM", "Despawn"),
	announce_config("DROP_ANNOUNCE", "Drop"),
	announce_config("EXTINGUISH_ANNOUNCE", "Extinguish"),
	announce_config("GOD_ANNOUNCE", "God Mode"),
	announce_config("CREATIVE_ANNOUNCE", "Creative Mode"),
	announce_config("REPAIR_ANNOUNCE", "Repair"),
	announce_config("DESPAWN_ANNOUNCE", "Despawn"),
}